package com.lzt;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;

@SpringBootTest
public class LztBlogApplicationtest {
    @Autowired
    private  RedisTemplate redisTemplate;


    @Test
    void teststring(){
        redisTemplate.opsForValue().set("nane", "sd");
        Object nane = redisTemplate.opsForValue().get("nane");
        System.out.println("nane="+nane);
    }

}
